package com.java2207.group1.mapper;

import com.java2207.group1.pojo.Cases;
import com.java2207.group1.vo.casesult.CasesBarVo;
import com.java2207.group1.vo.casesult.CasesPieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Lenovo 2022/7/26 12:04
 * @author Lenovo
 */
public interface CasesMapper {


    List<Cases> selectAllCaseByParams(Map<String, Object> params);

    int addCase(Cases cas);

    int delectCase(Integer id);

    int updateCase(Cases cas);

    int deleteCaseByIds(@Param("ids") String[] ids);


    List<CasesBarVo> caseBarData();

    List<CasesPieVo> casePieData();
}
